
import { request } from 'umi';
import { getCookie } from '@/utils/utils';

export async function getHistoryList(serialNum: string): Promise<API.IResponse<any>> {
  const token = getCookie('token');
  return request(`/bpm/api/process/assignee/${serialNum}`, {
    headers: {
      Authorization: `Bearer ${token}`,
    },
  });
}
